﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeBehind="ShareCustomer.aspx.cs"
    Inherits="ZX.WebApp.Crm.Customer.ShareCustomer" %>

<%@ Register Assembly="ZX.Web.UI.Controls" Namespace="ZX.Web.UI.Controls.UserControl"
    TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/connection/connection-min.js"></script>
    <script src="../../Scripts/jquery-1.6.min.js" type="text/javascript"></script>
    <link href="../../Styles/extendTable.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 100%; height: 100%;">
            <tr>
                <td align="center" colspan="4" style="font-weight: bold;">
                    <%if (hiddenEntity.Value == "CrmCustomerInfo")
                      { %>
                    <font style="font-size: 15px;">客户分配<asp:Label ID="lblTitle" runat="server" Text=""></asp:Label></font>
                    <%}
                      else
                      { %>
                    <font style="font-size: 15px;">共享客户</font>
                    <%} %>
                </td>
            </tr>
            <tr>
                <td style="width: 60px; text-align: right;">
                    <asp:Label ID="lblCode" runat="server" Text="客户编码"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtCode" runat="server" Enabled="false" BackColor="Beige"></asp:TextBox>
                </td>
                <td style="width: 100px; text-align: right;">
                    <asp:Label ID="lblName" runat="server" Text="客户名称"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtName" runat="server" Enabled="false" BackColor="Beige"></asp:TextBox>
                </td>
            </tr>
            <tr valign="bottom">
                <td style="text-align: right;">
                    <asp:Label ID="lblDecisionName" runat="server" Text="决策人"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtDecisionName" runat="server" Enabled="false" BackColor="Beige"></asp:TextBox>
                </td>
            </tr>
            <tr valign="bottom">
                <td style="text-align: right;">
                    所属部门
                </td>
                <td colspan="3">
                    <cc1:DeptList ID="DeptList1" runat="server"></cc1:DeptList>
                    <%--<asp:DropDownList ID="drpDept" runat="server" Width="155px" AppendDataBoundItems="true"
                        AutoPostBack="True" OnSelectedIndexChanged="drpDept_SelectedIndexChanged">
                        <asp:ListItem Value="00">--选择部门过滤--</asp:ListItem>
                    </asp:DropDownList>--%>
                </td>
            </tr>
            <tr valign="bottom">
                <td>&nbsp;</td>
                <td colspan="2">
                    <input type="text" id="txtSearch" name="txtSearch" style="width: 95px;" />
                    <input type="button" id="btnSearch" name="btnSearch" onclick="SearchName()" value="查找"
                        class="btnCheck" style="width: 50px; height: 20px;" />
                </td>
            </tr>
            <tr>
                <td style="text-align: right;">
                    人员列表
                </td>
                <td>
                    <asp:ListBox ID="lstBoxSubject" runat="server" Height="220px" Width="155px"></asp:ListBox>
                </td>
                <td>
                    <button id="add" type="button" style="width: 55px;" class="btnCheck">
                        ></button><br />
                    <br />
                    <button id="add_all" type="button" style="width: 55px;" class="btnCheck">
                        >></button><br />
                    <br />
                    <br />
                    <button id="remove" type="button" style="width: 55px;" class="btnCheck">
                        <</button><br />
                    <br />
                    <button id="remove_all" type="button" style="width: 55px;" class="btnCheck">
                        <<</button>
                </td>
                <td>
                    <asp:ListBox ID="lstBoxResult" runat="server" Height="220px" Width="155px"></asp:ListBox>
                </td>
            </tr>
            <asp:HiddenField ID="hdnUid" runat="server" />
            <asp:HiddenField ID="hiddenId" runat="server" />
            <asp:HiddenField ID="hiddenDId" runat="server" />
            <asp:HiddenField ID="hiddenType" runat="server" />
            <asp:HiddenField ID="hiddenEntity" runat="server" />
        </table>
    </div>
    </form>
    <form id="form2" style="display: none" action="../../Extend/AjaxData/CustomOperating.aspx">
    <textarea style="display: none" id="jsonDataContent" rows="2" cols="2" name="jsonDataContent"></textarea>
    </form>
</body>
<script src="../../Scripts/Appjs/model.ShareCustomer.js" type="text/javascript"></script>
</html>
